package com.yunfeisoft.business.service.impl;

import com.yunfeisoft.business.dao.inter.OwnMedicalRegistrationDao;
import com.yunfeisoft.business.model.OwnMedicalRegistration;
import com.yunfeisoft.business.service.inter.OwnMedicalRegistrationService;
import com.yunfeisoft.common.base.BaseServiceImpl;
import com.yunfeisoft.common.sql.separation.DataSourceChange;
import com.yunfeisoft.common.utils.Page;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * ClassName: OwnMedicalRegistrationServiceImpl
 * Description: 自带医疗药品登记表service实现
 * Author: Jackie liu
 * Date: 2020-05-22
 */
@Service("ownMedicalRegistrationService")
public class OwnMedicalRegistrationServiceImpl extends BaseServiceImpl<OwnMedicalRegistration, String, OwnMedicalRegistrationDao> implements OwnMedicalRegistrationService {

    @Override
    @DataSourceChange(slave = true)
    public Page<OwnMedicalRegistration> queryPage(Map<String, Object> params) {
        return getDao().queryPage(params);
    }
}